
<template>
    <div class="field-control">
        <RadioGroup :data="rangeList" :disabled="disabled" :value="value" :hasAll="hasAll" @input="valueInput">
        </RadioGroup>
        <div class="field-message" v-show="!validate">{{message}}</div>
    </div>
</template>
<script>
import base from "./base";
import RadioGroup from "@/element/radioGroup";
import Field from "../type";
export default {
  extends: base,
  data() {
    return {
      hasAll: false
    };
  },
  computed: {
    rangeList() {
      return Field.state.parseRangeset(this.fieldModel);
    }
  },
  components: {
    RadioGroup
  }
};
</script>
<style lang="less">
.field-control .ivu-radio-group {
  line-height: 32px;
  margin-bottom: -1px; 
  min-height: 32px;
}
</style>
